package com.andox.fn.inf.rpc.rest.filter;

import com.andox.fn.inf.rpc.rest.extension.ObjectFactory;

public class FilterObjectFactory extends ObjectFactory<Filter>{
	
	public final static String TIMEOUT = "timeout";
	public final static String EXCLUDE = "exclude";
	public final static String RATELIMIT = "ratelimit";
	
	@Override
	public Filter getDefault() {
		return null;
	}

	@Override
	protected void init() {
		this.table.put("ratelimit", new RateLimitFilter());
		this.table.put("timeout", new TimeoutFilter());
		this.table.put("exclude", new ExcludeFilter());
	}
}
